{% extends 'generic.html' %}
{% load i18n %} {# Translating code #}

{% block cssBlock %}
	<link href="/media/css/{{request.session.theme}}/pageForm/style.css" type="text/css" rel="stylesheet"/>	
	<link href="/media/css/{{request.session.theme}}/pageProfile/style.css" type="text/css" rel="stylesheet"/>
{% endblock %}

{% block header %}
	<h1>{% blocktrans %}Parallel Platform - Password retrieving{% endblocktrans %}</h1>
{% endblock %}

{% block article %}
	<h1>{% blocktrans %}Retrieve your password{% endblocktrans %}</h1>
	{% if validlink %}
		<p class="explanation">{% blocktrans %}Now write the new password you will use to log in from now on.{% endblocktrans %}</p>
		<form action="." method="POST">
			{% csrf_token %}
			{% if request.GET.next %}
				<input type="hidden" value="{{request.GET.next}}" name="next"> 
			{% endif %}
			{{form.non_field_errors}}
			<table>
				<tr>
					<td>
						{{form.new_password1.label_tag}}
					</td>
					<td>
						{{form.new_password1}}
					</td>
					<td>
						{{form.new_password1.errors}}
					</td>
				</tr>
				<tr>
					<td>
						{{form.new_password2.label_tag}}
					</td>
					<td>
						{{form.new_password2}}
					</td>
					<td>
						{{form.new_password2.errors}}
					</td>
				</tr>
			</table>
		<input type="submit" value="{% blocktrans %}Set new password{% endblocktrans %}" />
		</form>
	{% else %}
		<p class="explanation">{% blocktrans %}This link has expired or it has already been used.{% endblocktrans %}</p>
	{% endif %}

{% endblock %}